package com.jsb.model;

import java.util.ArrayList;
import java.util.List;

public class GainmedalExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private int pageIndex;

    private int pageSize;

    public GainmedalExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex=pageIndex;
    }

    public int getPageIndex() {
        return this.pageIndex;
    }

    public void setPageSize(int pageSize) {
        this.pageSize=pageSize;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public GainmedalExample(int pageIndex, int pageSize) {
        this();
        this.pageIndex=pageIndex;
        this.pageSize=pageSize;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPhoneIsNull() {
            addCriterion("phone is null");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNotNull() {
            addCriterion("phone is not null");
            return (Criteria) this;
        }

        public Criteria andPhoneEqualTo(String value) {
            addCriterion("phone =", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotEqualTo(String value) {
            addCriterion("phone <>", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThan(String value) {
            addCriterion("phone >", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("phone >=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThan(String value) {
            addCriterion("phone <", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThanOrEqualTo(String value) {
            addCriterion("phone <=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLike(String value) {
            addCriterion("phone like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotLike(String value) {
            addCriterion("phone not like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneIn(List<String> values) {
            addCriterion("phone in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotIn(List<String> values) {
            addCriterion("phone not in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneBetween(String value1, String value2) {
            addCriterion("phone between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotBetween(String value1, String value2) {
            addCriterion("phone not between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andMedalNum1IsNull() {
            addCriterion("medalNum1 is null");
            return (Criteria) this;
        }

        public Criteria andMedalNum1IsNotNull() {
            addCriterion("medalNum1 is not null");
            return (Criteria) this;
        }

        public Criteria andMedalNum1EqualTo(Integer value) {
            addCriterion("medalNum1 =", value, "medalNum1");
            return (Criteria) this;
        }

        public Criteria andMedalNum1NotEqualTo(Integer value) {
            addCriterion("medalNum1 <>", value, "medalNum1");
            return (Criteria) this;
        }

        public Criteria andMedalNum1GreaterThan(Integer value) {
            addCriterion("medalNum1 >", value, "medalNum1");
            return (Criteria) this;
        }

        public Criteria andMedalNum1GreaterThanOrEqualTo(Integer value) {
            addCriterion("medalNum1 >=", value, "medalNum1");
            return (Criteria) this;
        }

        public Criteria andMedalNum1LessThan(Integer value) {
            addCriterion("medalNum1 <", value, "medalNum1");
            return (Criteria) this;
        }

        public Criteria andMedalNum1LessThanOrEqualTo(Integer value) {
            addCriterion("medalNum1 <=", value, "medalNum1");
            return (Criteria) this;
        }

        public Criteria andMedalNum1In(List<Integer> values) {
            addCriterion("medalNum1 in", values, "medalNum1");
            return (Criteria) this;
        }

        public Criteria andMedalNum1NotIn(List<Integer> values) {
            addCriterion("medalNum1 not in", values, "medalNum1");
            return (Criteria) this;
        }

        public Criteria andMedalNum1Between(Integer value1, Integer value2) {
            addCriterion("medalNum1 between", value1, value2, "medalNum1");
            return (Criteria) this;
        }

        public Criteria andMedalNum1NotBetween(Integer value1, Integer value2) {
            addCriterion("medalNum1 not between", value1, value2, "medalNum1");
            return (Criteria) this;
        }

        public Criteria andMedalNum2IsNull() {
            addCriterion("medalNum2 is null");
            return (Criteria) this;
        }

        public Criteria andMedalNum2IsNotNull() {
            addCriterion("medalNum2 is not null");
            return (Criteria) this;
        }

        public Criteria andMedalNum2EqualTo(Integer value) {
            addCriterion("medalNum2 =", value, "medalNum2");
            return (Criteria) this;
        }

        public Criteria andMedalNum2NotEqualTo(Integer value) {
            addCriterion("medalNum2 <>", value, "medalNum2");
            return (Criteria) this;
        }

        public Criteria andMedalNum2GreaterThan(Integer value) {
            addCriterion("medalNum2 >", value, "medalNum2");
            return (Criteria) this;
        }

        public Criteria andMedalNum2GreaterThanOrEqualTo(Integer value) {
            addCriterion("medalNum2 >=", value, "medalNum2");
            return (Criteria) this;
        }

        public Criteria andMedalNum2LessThan(Integer value) {
            addCriterion("medalNum2 <", value, "medalNum2");
            return (Criteria) this;
        }

        public Criteria andMedalNum2LessThanOrEqualTo(Integer value) {
            addCriterion("medalNum2 <=", value, "medalNum2");
            return (Criteria) this;
        }

        public Criteria andMedalNum2In(List<Integer> values) {
            addCriterion("medalNum2 in", values, "medalNum2");
            return (Criteria) this;
        }

        public Criteria andMedalNum2NotIn(List<Integer> values) {
            addCriterion("medalNum2 not in", values, "medalNum2");
            return (Criteria) this;
        }

        public Criteria andMedalNum2Between(Integer value1, Integer value2) {
            addCriterion("medalNum2 between", value1, value2, "medalNum2");
            return (Criteria) this;
        }

        public Criteria andMedalNum2NotBetween(Integer value1, Integer value2) {
            addCriterion("medalNum2 not between", value1, value2, "medalNum2");
            return (Criteria) this;
        }

        public Criteria andMedalNum3IsNull() {
            addCriterion("medalNum3 is null");
            return (Criteria) this;
        }

        public Criteria andMedalNum3IsNotNull() {
            addCriterion("medalNum3 is not null");
            return (Criteria) this;
        }

        public Criteria andMedalNum3EqualTo(Integer value) {
            addCriterion("medalNum3 =", value, "medalNum3");
            return (Criteria) this;
        }

        public Criteria andMedalNum3NotEqualTo(Integer value) {
            addCriterion("medalNum3 <>", value, "medalNum3");
            return (Criteria) this;
        }

        public Criteria andMedalNum3GreaterThan(Integer value) {
            addCriterion("medalNum3 >", value, "medalNum3");
            return (Criteria) this;
        }

        public Criteria andMedalNum3GreaterThanOrEqualTo(Integer value) {
            addCriterion("medalNum3 >=", value, "medalNum3");
            return (Criteria) this;
        }

        public Criteria andMedalNum3LessThan(Integer value) {
            addCriterion("medalNum3 <", value, "medalNum3");
            return (Criteria) this;
        }

        public Criteria andMedalNum3LessThanOrEqualTo(Integer value) {
            addCriterion("medalNum3 <=", value, "medalNum3");
            return (Criteria) this;
        }

        public Criteria andMedalNum3In(List<Integer> values) {
            addCriterion("medalNum3 in", values, "medalNum3");
            return (Criteria) this;
        }

        public Criteria andMedalNum3NotIn(List<Integer> values) {
            addCriterion("medalNum3 not in", values, "medalNum3");
            return (Criteria) this;
        }

        public Criteria andMedalNum3Between(Integer value1, Integer value2) {
            addCriterion("medalNum3 between", value1, value2, "medalNum3");
            return (Criteria) this;
        }

        public Criteria andMedalNum3NotBetween(Integer value1, Integer value2) {
            addCriterion("medalNum3 not between", value1, value2, "medalNum3");
            return (Criteria) this;
        }

        public Criteria andMedalNum4IsNull() {
            addCriterion("medalNum4 is null");
            return (Criteria) this;
        }

        public Criteria andMedalNum4IsNotNull() {
            addCriterion("medalNum4 is not null");
            return (Criteria) this;
        }

        public Criteria andMedalNum4EqualTo(Integer value) {
            addCriterion("medalNum4 =", value, "medalNum4");
            return (Criteria) this;
        }

        public Criteria andMedalNum4NotEqualTo(Integer value) {
            addCriterion("medalNum4 <>", value, "medalNum4");
            return (Criteria) this;
        }

        public Criteria andMedalNum4GreaterThan(Integer value) {
            addCriterion("medalNum4 >", value, "medalNum4");
            return (Criteria) this;
        }

        public Criteria andMedalNum4GreaterThanOrEqualTo(Integer value) {
            addCriterion("medalNum4 >=", value, "medalNum4");
            return (Criteria) this;
        }

        public Criteria andMedalNum4LessThan(Integer value) {
            addCriterion("medalNum4 <", value, "medalNum4");
            return (Criteria) this;
        }

        public Criteria andMedalNum4LessThanOrEqualTo(Integer value) {
            addCriterion("medalNum4 <=", value, "medalNum4");
            return (Criteria) this;
        }

        public Criteria andMedalNum4In(List<Integer> values) {
            addCriterion("medalNum4 in", values, "medalNum4");
            return (Criteria) this;
        }

        public Criteria andMedalNum4NotIn(List<Integer> values) {
            addCriterion("medalNum4 not in", values, "medalNum4");
            return (Criteria) this;
        }

        public Criteria andMedalNum4Between(Integer value1, Integer value2) {
            addCriterion("medalNum4 between", value1, value2, "medalNum4");
            return (Criteria) this;
        }

        public Criteria andMedalNum4NotBetween(Integer value1, Integer value2) {
            addCriterion("medalNum4 not between", value1, value2, "medalNum4");
            return (Criteria) this;
        }

        public Criteria andMedalNum5IsNull() {
            addCriterion("medalNum5 is null");
            return (Criteria) this;
        }

        public Criteria andMedalNum5IsNotNull() {
            addCriterion("medalNum5 is not null");
            return (Criteria) this;
        }

        public Criteria andMedalNum5EqualTo(Integer value) {
            addCriterion("medalNum5 =", value, "medalNum5");
            return (Criteria) this;
        }

        public Criteria andMedalNum5NotEqualTo(Integer value) {
            addCriterion("medalNum5 <>", value, "medalNum5");
            return (Criteria) this;
        }

        public Criteria andMedalNum5GreaterThan(Integer value) {
            addCriterion("medalNum5 >", value, "medalNum5");
            return (Criteria) this;
        }

        public Criteria andMedalNum5GreaterThanOrEqualTo(Integer value) {
            addCriterion("medalNum5 >=", value, "medalNum5");
            return (Criteria) this;
        }

        public Criteria andMedalNum5LessThan(Integer value) {
            addCriterion("medalNum5 <", value, "medalNum5");
            return (Criteria) this;
        }

        public Criteria andMedalNum5LessThanOrEqualTo(Integer value) {
            addCriterion("medalNum5 <=", value, "medalNum5");
            return (Criteria) this;
        }

        public Criteria andMedalNum5In(List<Integer> values) {
            addCriterion("medalNum5 in", values, "medalNum5");
            return (Criteria) this;
        }

        public Criteria andMedalNum5NotIn(List<Integer> values) {
            addCriterion("medalNum5 not in", values, "medalNum5");
            return (Criteria) this;
        }

        public Criteria andMedalNum5Between(Integer value1, Integer value2) {
            addCriterion("medalNum5 between", value1, value2, "medalNum5");
            return (Criteria) this;
        }

        public Criteria andMedalNum5NotBetween(Integer value1, Integer value2) {
            addCriterion("medalNum5 not between", value1, value2, "medalNum5");
            return (Criteria) this;
        }

        public Criteria andMedalNum6IsNull() {
            addCriterion("medalNum6 is null");
            return (Criteria) this;
        }

        public Criteria andMedalNum6IsNotNull() {
            addCriterion("medalNum6 is not null");
            return (Criteria) this;
        }

        public Criteria andMedalNum6EqualTo(Integer value) {
            addCriterion("medalNum6 =", value, "medalNum6");
            return (Criteria) this;
        }

        public Criteria andMedalNum6NotEqualTo(Integer value) {
            addCriterion("medalNum6 <>", value, "medalNum6");
            return (Criteria) this;
        }

        public Criteria andMedalNum6GreaterThan(Integer value) {
            addCriterion("medalNum6 >", value, "medalNum6");
            return (Criteria) this;
        }

        public Criteria andMedalNum6GreaterThanOrEqualTo(Integer value) {
            addCriterion("medalNum6 >=", value, "medalNum6");
            return (Criteria) this;
        }

        public Criteria andMedalNum6LessThan(Integer value) {
            addCriterion("medalNum6 <", value, "medalNum6");
            return (Criteria) this;
        }

        public Criteria andMedalNum6LessThanOrEqualTo(Integer value) {
            addCriterion("medalNum6 <=", value, "medalNum6");
            return (Criteria) this;
        }

        public Criteria andMedalNum6In(List<Integer> values) {
            addCriterion("medalNum6 in", values, "medalNum6");
            return (Criteria) this;
        }

        public Criteria andMedalNum6NotIn(List<Integer> values) {
            addCriterion("medalNum6 not in", values, "medalNum6");
            return (Criteria) this;
        }

        public Criteria andMedalNum6Between(Integer value1, Integer value2) {
            addCriterion("medalNum6 between", value1, value2, "medalNum6");
            return (Criteria) this;
        }

        public Criteria andMedalNum6NotBetween(Integer value1, Integer value2) {
            addCriterion("medalNum6 not between", value1, value2, "medalNum6");
            return (Criteria) this;
        }

        public Criteria andRandomRangeIsNull() {
            addCriterion("randomRange is null");
            return (Criteria) this;
        }

        public Criteria andRandomRangeIsNotNull() {
            addCriterion("randomRange is not null");
            return (Criteria) this;
        }

        public Criteria andRandomRangeEqualTo(String value) {
            addCriterion("randomRange =", value, "randomRange");
            return (Criteria) this;
        }

        public Criteria andRandomRangeNotEqualTo(String value) {
            addCriterion("randomRange <>", value, "randomRange");
            return (Criteria) this;
        }

        public Criteria andRandomRangeGreaterThan(String value) {
            addCriterion("randomRange >", value, "randomRange");
            return (Criteria) this;
        }

        public Criteria andRandomRangeGreaterThanOrEqualTo(String value) {
            addCriterion("randomRange >=", value, "randomRange");
            return (Criteria) this;
        }

        public Criteria andRandomRangeLessThan(String value) {
            addCriterion("randomRange <", value, "randomRange");
            return (Criteria) this;
        }

        public Criteria andRandomRangeLessThanOrEqualTo(String value) {
            addCriterion("randomRange <=", value, "randomRange");
            return (Criteria) this;
        }

        public Criteria andRandomRangeLike(String value) {
            addCriterion("randomRange like", value, "randomRange");
            return (Criteria) this;
        }

        public Criteria andRandomRangeNotLike(String value) {
            addCriterion("randomRange not like", value, "randomRange");
            return (Criteria) this;
        }

        public Criteria andRandomRangeIn(List<String> values) {
            addCriterion("randomRange in", values, "randomRange");
            return (Criteria) this;
        }

        public Criteria andRandomRangeNotIn(List<String> values) {
            addCriterion("randomRange not in", values, "randomRange");
            return (Criteria) this;
        }

        public Criteria andRandomRangeBetween(String value1, String value2) {
            addCriterion("randomRange between", value1, value2, "randomRange");
            return (Criteria) this;
        }

        public Criteria andRandomRangeNotBetween(String value1, String value2) {
            addCriterion("randomRange not between", value1, value2, "randomRange");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}